package main

// ListIndexCodes 获取指数代码列表，移除无数据的代码
func ListIndexCodes() ([]IndexCode, error) {
	// 原始指数代码列表
	originalCodes := []IndexCode{
		// 市场综合指数
		{Code: "000001", Secid: "1.000001", Name: "上证指数"},
		{Code: "399001", Secid: "0.399001", Name: "深证成指"},
		{Code: "000300", Secid: "1.000300", Name: "沪深300"},
		{Code: "000016", Secid: "1.000016", Name: "上证50"},
		{Code: "399005", Secid: "0.399005", Name: "中小板指"},
		{Code: "399006", Secid: "0.399006", Name: "创业板指"},
		{Code: "000905", Secid: "1.000905", Name: "中证500"},
		{Code: "000906", Secid: "1.000906", Name: "中证800"},
		{Code: "000907", Secid: "1.000907", Name: "中证1000"},
		{Code: "399106", Secid: "0.399106", Name: "深证综指"},

		// 概念指数
		{Code: "399363", Secid: "0.399363", Name: "锂电池"},
		{Code: "399439", Secid: "0.399439", Name: "新能源车"},
		{Code: "399673", Secid: "0.399673", Name: "5G概念"},
		{Code: "399682", Secid: "0.399682", Name: "芯片概念"},
		{Code: "399695", Secid: "0.399695", Name: "人工智能"},
		{Code: "399550", Secid: "0.399550", Name: "互联网"},
		{Code: "399523", Secid: "0.399523", Name: "大数据"},
		{Code: "399414", Secid: "0.399414", Name: "云计算"},
		{Code: "399614", Secid: "0.399614", Name: "区块链"},
		{Code: "399433", Secid: "0.399433", Name: "半导体"},
		{Code: "399586", Secid: "0.399586", Name: "物联网"},
		{Code: "399641", Secid: "0.399641", Name: "工业互联"},
		{Code: "399438", Secid: "0.399438", Name: "特斯拉"},
		{Code: "399506", Secid: "0.399506", Name: "OLED"},
		{Code: "399655", Secid: "0.399655", Name: "量子通信"},
		{Code: "399688", Secid: "0.399688", Name: "数字货币"},
		{Code: "399536", Secid: "0.399536", Name: "智能家居"},
		{Code: "399428", Secid: "0.399428", Name: "无人机"},
		{Code: "399598", Secid: "0.399598", Name: "虚拟现实"},
		{Code: "399635", Secid: "0.399635", Name: "增强现实"},

		// 地域指数
		{Code: "399632", Secid: "0.399632", Name: "雄安新区"},
		{Code: "399633", Secid: "0.399633", Name: "粤港澳"},
		{Code: "399634", Secid: "0.399634", Name: "长三角"},
		{Code: "399636", Secid: "0.399636", Name: "海南自贸"},
		{Code: "399637", Secid: "0.399637", Name: "成渝特区"},
		{Code: "399638", Secid: "0.399638", Name: "京津冀"},
		{Code: "399639", Secid: "0.399639", Name: "一带一路"},
		{Code: "399640", Secid: "0.399640", Name: "长江经济带"},

		// 风格指数
		{Code: "000919", Secid: "1.000919", Name: "300价值"},
		{Code: "000920", Secid: "1.000920", Name: "300成长"},
		{Code: "000921", Secid: "1.000921", Name: "500价值"},
		{Code: "000922", Secid: "1.000922", Name: "500成长"},
		{Code: "000923", Secid: "1.000923", Name: "1000成长"},
		{Code: "000924", Secid: "1.000924", Name: "1000价值"},
		{Code: "000925", Secid: "1.000925", Name: "300质量"},
		{Code: "000926", Secid: "1.000926", Name: "300波动"},
		{Code: "000927", Secid: "1.000927", Name: "500质量"},
		{Code: "000928", Secid: "1.000928", Name: "500波动"},

		// 主题指数
		{Code: "000852", Secid: "1.000852", Name: "中证消费"},
		{Code: "000851", Secid: "1.000851", Name: "中证医药"},
		{Code: "000849", Secid: "1.000849", Name: "中证金融"},
		{Code: "000850", Secid: "1.000850", Name: "中证能源"},
		{Code: "000847", Secid: "1.000847", Name: "中证材料"},
		{Code: "000848", Secid: "1.000848", Name: "中证工业"},
		{Code: "000845", Secid: "1.000845", Name: "中证可选"},
		{Code: "000846", Secid: "1.000846", Name: "中证信息"},
		{Code: "000843", Secid: "1.000843", Name: "中证电信"},
		{Code: "000844", Secid: "1.000844", Name: "中证公用"},

		// 策略指数
		{Code: "000832", Secid: "1.000832", Name: "中证红利"},
		{Code: "000822", Secid: "1.000822", Name: "红利ETF"},
		{Code: "000891", Secid: "1.000891", Name: "央视50"},
		{Code: "000978", Secid: "1.000978", Name: "深证红利"},
		{Code: "000982", Secid: "1.000982", Name: "基本面50"},
		{Code: "000981", Secid: "1.000981", Name: "央企结构"},
		{Code: "000966", Secid: "1.000966", Name: "MSCI中国"},
		{Code: "000968", Secid: "1.000968", Name: "MSCI质量"},
		{Code: "000969", Secid: "1.000969", Name: "MSCI价值"},
		{Code: "000970", Secid: "1.000970", Name: "MSCI成长"},

		// 其他重要指数
		{Code: "000010", Secid: "1.000010", Name: "上证180"},
		{Code: "000011", Secid: "1.000011", Name: "上证380"},
		{Code: "000932", Secid: "1.000932", Name: "中证100"},
		{Code: "000933", Secid: "1.000933", Name: "中证200"},
		{Code: "000934", Secid: "1.000934", Name: "中证700"},
		{Code: "000935", Secid: "1.000935", Name: "中证800成长"},
		{Code: "000936", Secid: "1.000936", Name: "中证800价值"},
		{Code: "000937", Secid: "1.000937", Name: "中证800质量"},
		{Code: "000938", Secid: "1.000938", Name: "中证800波动"},
		{Code: "399364", Secid: "0.399364", Name: "宁德时代概念"},
	}

	return originalCodes, nil
}
